-- GENERATED SPELL FOR [Rocknail Flayer] --


function spell0_21477(pUnit, Event) --@Flayed Flesh,n/a--
pUnit:FullCastSpellOnTarget(37937,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_21477', 15255, 1)
end

function Sorts_21477(pUnit, Event)
local choix_sorts_21477 = math.random(0, 0)
if choix_sorts_21477 == 0 then
pUnit:RegisterEvent('spell0_21477', 1, 1)
end
end

function mob21477_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_21477', math.random(1500, 3000), 1)
end

function mob21477_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob21477_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob21477_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(21477, 1, 'mob21477_Action')
RegisterUnitEvent(21477, 2, 'mob21477_Leave')
RegisterUnitEvent(21477, 3, 'mob21477_Kill')
RegisterUnitEvent(21477, 4, 'mob21477_Die')
